home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group95c.txt / 000112_icon-group-sender _Mon Dec 4 16:58:11 1995.msg < prev    next >
Internet Message Format  |  1996-01-03  |  18KB

  1. Received: by cheltenham.cs.arizona.edu; Tue, 5 Dec 1995 06:04:35 MST
  2. To: icon-group@cs.arizona.edu
  3. Date: 4 Dec 1995 16:58:11 -0700
  4. From: icon-project@cs.arizona.edu
  5. Message-Id: <4a01uj$20r@cheltenham.cs.arizona.edu>
  6. Organization: University of Arizona CS Department, Tucson AZ
  7. Sender: icon-group-request@cs.arizona.edu
  8. Reply-To: icon-project@cs.arizona.edu
  9. Subject: Icon Programming Language FAQ
  10. Errors-To: icon-group-errors@cs.arizona.edu
  11.  
  12. Archive-name: comp-lang-icon-faq
  13. Posting-Frequency: monthly
  14.  
  15. Frequently Asked Questions About The Icon Programming Language
  16. Last updated: November 29, 1995
  17.  
  18. This FAQ answers various questions about the Icon programming language,
  19. ranging from what it is to how you can get it. The master copy of this FAQ
  20. is the Web page http://www.cs.arizona.edu/icon/www/faq.html. Other on-line
  21. documentation is available via the main Icon page at
  22. http://www.cs.arizona.edu/icon/www/.
  23.  
  24. This FAQ is written by Ralph Griswold and Gregg Townsend, with help from
  25. Cliff Hathaway, Clint Jeffery, and Bob Alexander.
  26.  
  27.    * 1. What is Icon?
  28.    * 2. What is Icon good for?
  29.    * 3. Where did Icon come from?
  30.    * 4. What does "Icon" stand for?
  31.    * 5. On what computers does Icon run?
  32.    * 6. Who did all these implementations?
  33.    * 7. Are there other implementations in the works?
  34.    * 8. What about different versions of Icon?
  35.    * 9. Which implementations of Icon have graphics/window capabilities?
  36.    * 10. Where can I get Icon?
  37.    * 11. Where can I get documentation about Icon?
  38.    * 12. How do I get started with Icon?
  39.    * 13. What is the Icon Project?
  40.    * 14. Where can I find examples of Icon programs?
  41.    * 15. What is Idol?
  42.    * 16. How often is material in Icon's FTP area updated?
  43.    * 17. How do I stay up to date with what's going on with Icon?
  44.    * 18. Is there a users' group for Icon?
  45.    * 19. How do I get technical support?
  46.    * 20. Should I use the Icon interpreter or compiler?
  47.    * 21. What do I need to run the interpreter?
  48.    * 22. What do I need to run the compiler?
  49.    * 23. Can I build my own implementation of Icon for a new platform?
  50.  
  51. ----------------------------------------------------------------------------
  52.  
  53. 1. What is Icon?
  54.  
  55. Icon is a very high level general-purpose programming language with
  56. extensive features for processing strings (text) and data structures. Icon
  57. is an imperative, procedural language with a syntax that is reminiscent of C
  58. and Pascal, but its semantics are at a much higher level than those
  59. languages.
  60.  
  61. Icon has a novel expression-evaluation mechanism that integrates
  62. goal-directed evaluation and backtracking with conventional control
  63. structures. It has a string scanning facility for pattern matching that
  64. avoids the tedious details usually associated with analyzing strings. Icon's
  65. built-in data structures include sets and tables with associative lookup,
  66. lists that can be used as vectors or stacks and queues, and records.
  67.  
  68. Icon is a strongly, though not statically, typed language. It provides
  69. transparent automatic type conversion. For example, if an integer is used in
  70. an operation that requires a string, the integer is automatically converted
  71. to a string.
  72.  
  73. Several implementations of Icon have high-level graphics facilities with an
  74. easily programmed window interface.
  75.  
  76. Icon manages storage automatically. Objects are created as needed during
  77. program execution and space is reclaimed by garbage collection as needed.
  78. The sizes of strings and data structures are limited only by the amount of
  79. available memory.
  80.  
  81.  
  82. 2. What is Icon good for?
  83.  
  84. As a general-purpose programming language with a large computational
  85. repertoire, Icon can be used for most programming tasks. It's at its best
  86. when used as a prototyping tool, for processing text, and when ease of
  87. programming is needed for experimental and research applications.
  88.  
  89. Paradoxically, Icon is used most often for short, one-shot tasks and for
  90. very complex applications.
  91.  
  92. Icon is designed to make programming easy; it emphasizes the value of
  93. programmer's time and the importance of getting programs to work quickly.
  94. This explains its usefulness for prototyping as well as the apparent paradox
  95. of applicability to simple and complex applications.
  96.  
  97.  
  98. 3. Where did Icon come from?
  99.  
  100. Icon is the latest in a series of high-level programming languages designed
  101. to facilitate programming tasks involving strings and structures. The
  102. original language, SNOBOL, was developed at Bell Telephone Laboratories in
  103. the early 60s. SNOBOL evolved into SNOBOL4, which is still in use.
  104. Subsequent languages were developed at The University of Arizona with
  105. support from the National Science Foundation.
  106.  
  107. Incidentally, Icon bears little physical resemblance to SNOBOL4, although it
  108. has similar objectives and many similar capabilities.
  109.  
  110.  
  111. 4. What does "Icon" stand for?
  112.  
  113. The name Icon (which is not spelled ICON) is not an acronym nor does it
  114. stand for anything in particular, although the word "iconoclastic" was
  115. mentioned at the time the name was chosen. The name predates the now common
  116. use of "icon" to refer to small images used in graphical user interfaces.
  117. This latter usage sometimes causes persons to think mistakenly that Icon is
  118. designed to create or manipulate icons. There's not much that can be done
  119. about this.
  120.  
  121.  
  122. 5. On what computers does Icon run?
  123.  
  124. The implementation of Icon is highly portable. Version 9 runs on
  125. Macintosh/MPW, MS-DOS, UNIX, and VAX/VMS. There are older versions for the
  126. Acorn Archimedes, the Amiga, the Atari ST, IBM CMS and MVS, and OS/2.
  127.  
  128. Icon programs also are highly portable. Most Icon programs can run on any
  129. platform that supports Icon.
  130.  
  131.  
  132. 6. Who did all these implementations?
  133.  
  134. The original implementation of Icon for UNIX was done at The University of
  135. Arizona. Most of the other implementations originally were done by
  136. volunteers scattered around the world.
  137.  
  138. It's worth noting that all implementations of Icon are based on the same
  139. source code, which is written in C. This contributes to the portability of
  140. Icon itself, as well as to the portability of programs written in Icon.
  141.  
  142.  
  143. 7. Are there other implementations in the works?
  144.  
  145. Yes, work is constantly underway on implementations of Icon for new
  146. platforms. Present projects include Microsoft Windows, Windows NT, and a new
  147. Macintosh implementation.
  148.  
  149.  
  150. 8. What about different versions of Icon?
  151.  
  152. Icon has evolved through a series of versions with improved and extended
  153. capabilities. The latest major version number is 9. This version includes
  154. recent changes and additions, notably in the graphics area. As of this
  155. writing, Macintosh/MPW, MS-DOS, UNIX, and VAX/VMS implementations are up to
  156. 9. There are other implementations that presently are at Version 8. Almost
  157. all programs that run under 8 and that do not use graphics will run under 9.
  158.  
  159.  
  160. 9. Which implementations of Icon have graphics/window capabilities?
  161.  
  162. Icon's graphics facilities presently are supported on UNIX and VAX/VMS. The
  163. Windows NT and Microsoft Windows implementations that are in progress will
  164. support Icon's graphics facilities. A Macintosh implementation to support
  165. graphics also is in the works.
  166.  
  167.  
  168. 10. Where can I get Icon?
  169.  
  170. Icon is available via anonymous FTP and on the Web. For FTP, use
  171.  
  172.      ftp.cs.arizona.edu
  173.  
  174. and cd /icon.
  175.  
  176. For the Web, use
  177.  
  178.      http://www.cs.arizona.edu/icon/www/
  179.  
  180. and check out the links there.
  181.  
  182. For FTP, the directory /icon/binaries contains executable versions of Icon
  183. for several systems, including several popular UNIX platforms. The directory
  184. /icon/packages contains source code, test programs, related material, and,
  185. most cases, executable binaries as well. All directories have README files
  186. with additional information.
  187.  
  188. Icon also is available on diskettes for prices ranging from $15 to $25.
  189. Contact:
  190.  
  191.      Icon Project
  192.      Department of Computer Science
  193.      The University of Arizona
  194.      P.O. Box 210077
  195.      Tucson, AZ 85721-0077
  196.  
  197.      520-621-6613 (voice)
  198.      520-621-4246 (fax)
  199.  
  200.      icon-orders@cs.arizona.edu
  201.  
  202. Purchases can be made by credit card (MasterCard or Visa) or by check drawn
  203. on a bank with a branch in the United States and made payable to The
  204. University of Arizona.
  205.  
  206.  
  207. 11. Where can I get documentation about Icon?
  208.  
  209. The definitive work on Icon is the book
  210.  
  211.      The Icon Programming Language, Griswold and Griswold,
  212.      Prentice-Hall, 1990, 368 pages, ISBN 0-13-447889-4.
  213.  
  214. This book is a complete description and reference manual for Version 8 of
  215. Icon. A technical report describes changes since that version.
  216.  
  217. There also is a book on the implementation of Icon:
  218.  
  219.      The Implementation of the Icon Programming Language, Griswold and
  220.      Griswold, Princeton University Press, 1986, 336 pages, ISBN
  221.      0-691-08431-9.
  222.  
  223. This book describes the implementation as of Version 6 of Icon. Although the
  224. implementation has changed considerably since then, the basic structure is
  225. the same. Technical reports describing recent implementation changes are
  226. included with copies of the book purchased from the Icon Project.
  227.  
  228. These books are available from the Icon Project or from book stores that
  229. handle special orders.
  230.  
  231. Additional documentation is available via FTP in /icon/doc. Notable
  232. documents are:
  233.  
  234.    * IPD266: An Overview of Icon (text, PostScript, PDF)
  235.    * IPD268: Graphics/window facilities (PostScript, PDF)
  236.    * IPD267: Version 9.1 of Icon (text, PostScript, PDF)
  237.  
  238. There are manual pages for UNIX systems, and more documentation under the
  239. Icon web page, but there is no complete on-line documentation.
  240.  
  241. The Icon Newsletter, which includes topical material about Icon and a list
  242. of material available from the Icon Project, is published three times a year
  243. and is available on the Web. There is a $20 one-time fee for an on-going
  244. subscription by postal mail. The Icon Analyst, a technically-oriented
  245. newsletter that features articles about programming, is published six times
  246. a year. There is a subscription fee for the Analyst. A sample copy is
  247. available on the Web.
  248.  
  249. All back issues of both newsletters are available for purchase.
  250.  
  251.  
  252. 12. How do I get started with Icon?
  253.  
  254. If you're running under Unix, check first in the /icon/binaries/unix FTP
  255. directory to see if there is a "starter kit" for your platform. Starter kits
  256. include executables, documentation, and other material.
  257.  
  258. Otherwise, go to the /icon/packages directory and get the appropriate
  259. package. Packages include documentation and other material; see the README
  260. file in that directory for more details. There is a Unix package for
  261. platforms that lack starter kits.
  262.  
  263. If the non-Unix package you pick up does not contain executable files, check
  264. /icon/binaries. You also may want to get the overview of Icon:
  265. /icon/doc/ipd266.doc or ipd266.ps.Z. You'll find pointers to other documents
  266. of interest in the package you pick up.
  267.  
  268.  
  269. 13. What is the Icon Project?
  270.  
  271. The Icon Project is a name used by the group that develops, implements,
  272. distributes, and supports the Icon programming language.
  273.  
  274. The Icon Project is not commercial organization. It derives support from The
  275. University of Arizona and (primarily) revenue from the sale of program
  276. material and documentation.
  277.  
  278.  
  279. 14. Where can I find examples of Icon programs?
  280.  
  281. There is a large program library for Icon. It is an excellent resource for
  282. both new and experienced programmers. The library contains numerous examples
  283. of how to do things with Icon. The library also provides many useful
  284. applications, as well as hundreds of procedures that supplement Icon's
  285. built-in repertoire.
  286.  
  287. The library, like other Icon material, is available via FTP in /icon/library
  288. and on diskettes from the Icon Project.
  289.  
  290.  
  291. 15. What is Idol?
  292.  
  293. Idol is an object-oriented extension to Icon that provides concepts such as
  294. classes and multiple inheritance. Idol is written in Idol and is distributed
  295. as part of the Icon program library. Idol runs on almost all of the
  296. platforms that support Icon.
  297.  
  298. Additional Idol information is available from Clint Jeffery,
  299.  
  300.      jeffery@ringer.cs.utsa.edu.
  301.  
  302.  
  303. 16. How often is material in Icon's FTP area updated?
  304.  
  305. New material is added when it's available. Established implementations
  306. usually are only updated when there's a major new release. This typically is
  307. every year or two. The Icon program library is updated on a similar
  308. schedule.
  309.  
  310.  
  311. 17. How do I stay up to date with what's going on with Icon?
  312.  
  313. The best way to find out about developments related to Icon is to read the
  314. Icon Newsletter.
  315.  
  316. You can stay up to date on the source code, which is changed much more
  317. frequently than the version on FTP is updated, by subscribing to the source
  318. update service, which provides a new version about three times a year.
  319.  
  320. There also is a subscription service for updates to the Icon program
  321. library, which provides new material about three times a year.
  322.  
  323. There is on-line information about subscribing to these services.
  324.  
  325.  
  326. 18. Is there a users' group for Icon?
  327.  
  328. There is no official Icon users' group. The Icon Project maintains an
  329. electronic mailing list,
  330.  
  331.      icon-group@cs.arizona.edu.
  332.  
  333. Mail sent to this address is forwarded to subscribers. To subscribe (or
  334. unsubscribe), send a message to
  335.  
  336.      icon-group-request@cs.arizona.edu.
  337.  
  338. There is a gateway between icon-group and comp.lang.icon, an unmoderated
  339. newsgroup for discussing issues related to Icon. The gateway, which
  340. exchanges messages between the two systems, is imperfect and not under the
  341. control of the Icon Project.
  342.  
  343. The newsgroup generally provides faster response than the mailing list, is
  344. less intrusive, but sometimes suffers from inappropriate postings. The Icon
  345. Project usually sends messages of interest to the Icon community to
  346. icon-group.
  347.  
  348.  
  349. 19. How do I get technical support?
  350.  
  351. Since the Icon Project is not a commercial organization, its capacity for
  352. providing technical support is limited. It will help if you use the
  353. appropriate resource when you need assistance:
  354.  
  355. Ordering Icon Material
  356.  
  357. mail:   Icon Project
  358.         Department of Computer Science
  359.         The University of Arizona
  360.         P.O. Box 210077
  361.         Tucson, Arizona 85721-0077
  362.         U.S.A.
  363.  
  364. fax:    (520) 621-4246
  365. voice:  (520) 621-6613
  366. e-mail: icon-orders@cs.arizona.edu
  367.  
  368. Getting On-Line Information and Material
  369.  
  370. web:    http://www.cs.arizona.edu/icon/www/
  371. ftp:    ftp.cs.arizona.edu (cd /icon)
  372. e-mail: ftpmail@cs.arizona.edu
  373.         Send a message consisting of the word help.
  374.  
  375. Assistance with Installing Icon
  376.  
  377. e-mail: icon-project@cs.arizona.edu
  378.  
  379. Bug Reports
  380.  
  381. e-mail: icon-project@cs.arizona.edu
  382. fax:    (520) 621-4246
  383.  
  384. Assistance with Programming Problems
  385.  
  386. e-mail: icon-group@cs.arizona.edu
  387. news:   comp.lang.icon
  388.  
  389. Uploading Files
  390.  
  391. ftp:    ftp.cs.arizona.edu (cd /incoming)
  392.         After uploading, send e-mail to icon-project@cs.arizona.edu.
  393.  
  394.  
  395. 20. Should I use the Icon interpreter or compiler?
  396.  
  397. As the question indicates, there are two forms of the implementation of
  398. Icon, an interpreter and a compiler. The interpreter gets a program into
  399. execution quickly and is recommended for program development, debugging, and
  400. most production situations. The compiler produces code that executes
  401. somewhat faster than interpreted code (a factor of 2 or 3 is typical), but
  402. the compiler requires a large amount of resources and is very slow in
  403. producing executable code. It also requires additional time and effort at
  404. installation time.
  405.  
  406. The compiler is recommended only for small programs where execution speed is
  407. the paramount concern.
  408.  
  409.  
  410. 21. What do I need to run the interpreter?
  411.  
  412. The Icon interpreter will run on most computers. It requires a reasonable
  413. amount of memory, however. Under MS-DOS, the Icon interpreter needs 500 KB
  414. of application RAM to work well.
  415.  
  416.  
  417. 22. What do I need to run the compiler?
  418.  
  419. The Icon compiler is another matter. It requires a C compiler, a fast CPU
  420. for tolerable compilation times, a considerable amount of disk space, and a
  421. lot of memory -- at least several megabytes.
  422.  
  423. The Icon compiler generates C code, which must then be compiled to produce
  424. an executable program. The flexibility that Icon provides to programmers
  425. makes compilation technically difficult and the process requires a large
  426. amount of memory. The C code it produces is voluminous and stresses the most
  427. robust C compilers.
  428.  
  429. Generally speaking, the Icon compiler is practical for platforms in the
  430. workstation class but not for personal computers.
  431.  
  432.  
  433. 23. Can I build my own implementation of Icon for a new platform?
  434.  
  435. As mentioned above, Icon is written in C and the source code is available.
  436. The existing implementations are testament to its portability. (A small
  437. amount of assembly-language code is required for a context switch, but this
  438. is only needed for an optional feature -- co-expressions -- that can be
  439. disabled without affecting most of Icon.)
  440.  
  441. New ports involve platform-specific configuration parameters and, in some
  442. cases, platform-specific code. The feasibility of a new port and the amount
  443. of work it may take depends on the platform -- its architecture, its C
  444. compiler, and its environment.
  445.  
  446. Ports to new UNIX platforms generally are easy, although novel architectures
  447. may present problems. Ports to new operating systems generally are more
  448. difficult, especially if Icon's graphics facilities are implemented.
  449.  
  450. The Icon Project provides what help it can with new ports. In return, it
  451. asks that code related to the port to be returned to the Icon Project for
  452. inclusion in future versions of the source code for Icon. This makes the new
  453. port available to others as well as to the porter when Icon is updated.
  454.